<html>
<head>
<link href="{$SITE_URL}main.css" rel="stylesheet" type="text/css" />
<script src="{$SITE_URL}templates/js/jquery.js" type="text/javascript"></script>
</head>
<body style="background:none">

<div style="height:30px; background:#ffffff; color:#333333; font-size:16px; font-family:Arial; padding-top:8px; font-weight:bold">&nbsp; &raquo; Link Testimonials</div>

<div id="fileDetails" style="width:580px" >



<form action="links.php?link={$fid}&section=comment" method="post">
<table cellspacing="10" style="width:530px">
<tr>
<td colspan="2"></td>
</tr>

{if $success_msg ne ""}
<tr><td colspan="2" class="success">{$success_msg}</td></tr>
{elseif $error_msg ne ""}
<tr><td colspan="2" class="error">{$error_msg}</td></tr>
{/if}

<tr><td style="width:150px;">Link Name</td><td>{$filename}</td></tr>

{if $error ne ""}
<tr><td colspan="2"><div class="error">{$error}</div></td></tr>
{elseif $success ne ""}
<tr><td colspan="2"><div class="success">{$success}</div></td></tr>
{/if}

<tr><td>Name</td><td class="fieldTd"><input type="text" class="txt_field" name="name" {if $comments|@count gte 3} disabled="disabled" {/if} /></td></tr>
<tr><td>Comment</td><td class="fieldTd"><textarea style="height: 50px;" name="comment" {if $comments|@count gte 3} disabled="disabled" {/if}></textarea></td></tr>
<input type="hidden" name="submit" value="save" />
<tr><td colspan="2" style="text-align:center"><input type="submit" class="buttonsmall" name="submit_btn" {if $comments|@count gte 3} disabled="disabled" {/if} value="Add Comment" /></td></tr>
</table>
</form>









<div class="listing" style="width:580px; margin:10px auto; height:270px; overflow:scroll">

<table cellspacing="0"   style="text-align:left; width:560px;" cellpadding="0">
<tr class="listing_th_row" style="background:#ededed">
<th style="padding-left:5px">Testimonials</th><th>&nbsp;</th>
</tr>
{if $comments ne ""}
{foreach item=comment from=$comments}

<tr  class="listing_row" style="background-color:#ffffff" >
    <td style="padding-left:10px;"><p><b>{$comment.name}</b></p><p>{$comment.comment}</p><br /></td><td><a href="links.php?link={$fid}&section=comment&act=del&cid={$comment.id}" onClick="if(!confirm('Are you sure you want to delete this testimonial?')) return false;">Delete</a></td>
</tr>



{/foreach}
<tr><td colspan="3">&nbsp; </td></tr>
{else}
<tr>
    <td colspan="2">No Testimonial Added Yet</td>
</tr>
{/if}

</table>


</div>



</div>


 
{literal}
<script type="text/javascript">
$(document).ready(function(){

$('.listing_row').hover(function(){ $(this).css('background-color', '#f6f6f6'); }, function(){ $(this).css('background-color', '#ffffff'); });


});
</script>
{/literal}




</body>
</html>